<template>
  <div class="myinfo">
    <el-row>
      <h1 style="margin: 0 auto">{{user.nickName}}的基本信息</h1>
    </el-row>
  </div>

</template>
<script>
import {authenticateUser} from "@/api/healthApi.js";
import router from "@/router/index.js";

export default {
  name: "MyInfo",
  data() {
    return {
      user:{},
    }
  },
  mounted() {
    authenticateUser().then(res=>{
      this.user = res.data
    }).catch(err=>{
      setTimeout(()=>{
        localStorage.removeItem("token")
        router.push('/')
      },1000)
    })
  },
  methods: {

  }
}

</script>
<style scoped>
.myinfo{
  background-color: #F4F7FB;
  height: 100%;
}
</style>